import os
import sys
import threading

def ircconnect():
    os.system("python ircconnect.py")

def scenarioplayer():
    os.system("python scenarioplayer.py")

def soundplayer():
    os.system("python soundplayer.py")

def blenderplayer():
    os.system("blenderplayer -g noaudio lolitav3.blend")

irc = threading.Thread(None, ircconnect, None)
sound = threading.Thread(None, soundplayer, None)
blender = threading.Thread(None, blenderplayer,None)
scenario = threading.Thread(None, scenarioplayer,None)
irc.start()
scenario.start()
# take the sound device before blenderplayer
os.system("mplayer heartbeat.mp3")
sound.start()
blender.start()
